package cn.com.zero.manager.gateway.enums;

/**
 * @author Yang Yao
 * @version 1.0.0
 * @Description token是否过期的枚举类型
 * @createTime 2023/3/14 16:03
 */
public enum ExpirationTypeEnum {

    OVERDUE(-1, "token已失效"),
    NO_REFRESH(0, "未失效，不刷新"),
    FLUSHED(1, "刷新");

    private int value;
    private String name;

    ExpirationTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
